// gui/GuiComponent.cpp


#include <core/std.h>
//#include <gfx/Visual.h>
#include "GuiComponent.h"
#include <renderer/Interfaces.hpp>

TypeId GUI::GuiComponent::s_TypeId = "GuiComponent";

using namespace GUI;

void GuiComponent::SetupGuiComponent( const CORE::String & strName, bool bActive)
{
	m_strName	= strName;
	m_u32Id		= CORE::Crc32_Calculate(strName);

	SetActive( bActive );
}

void GuiComponent::Render( IRenderingEngine * pRenderer )
{
	if (m_bVisible && m_pVisual)
	{
		pRenderer->Render(m_pVisual);
	}
}